var button = document.getElementsByTagName('button').item(0);

button.addEventListener('click', function (e) {
    window.Notify.show('title', 'hello world');
});


button.click();


function notify(title, msg) {
    var notification = window.Notification;
    if (notification) {
        if ('granted' === notification.permission) {
            new notification(title, { body: msg });
        } else {
            notification.requestPermission();
        }
    }
}





